
float fun(float eps)
{
    double sum=0.0;
    int n=1;
    while(1)
    {
        double an=1/(2*n-1);
            sum=sum+an*pow(-1,n+1);
        if(an<=eps)
        {
           return 4*sum;
        }
    }
}